package com.gxa.feign;

import com.gxa.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "seata-user-service")//测试远程调用是否可行，已成功
public interface FUserFeign {
    @GetMapping("/user/getUser")
    User getUser();
}
